﻿using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ST.Torch.WebApi.Core.Manage.Cache.Dto
{
    public class Progressbar
    {

        public static string key = "Progressbar_{0}";
        /// <summary>
        /// 总数
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// 当前下标
        /// </summary>
        public int CurrentIndex { get; set; }
        /// <summary>
        /// 是否取消
        /// </summary>
        public bool IsCancel { get; set; }
        /// <summary>
        /// 获取百分百
        /// </summary>
        public string GetPercent
        {
            get { return (((decimal)CurrentIndex/ (decimal)Total)*100).ToString() ; }
        }

      
    }
}
